﻿<Window x:Class="Daphne.Forms.GameSelectForm"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:loc="http://schemas.tomer.com/winfx/2006/xaml/presentation"                                              
        loc:Translate.Uid="FRM_SelectPDNTitle"
        Title="{loc:Translate}" Height="400" Width="600" WindowStartupLocation="CenterOwner"
         WindowStyle="ToolWindow" Background="{DynamicResource WindowBackgroundBrush}"
          ResizeMode="CanResize" MinWidth="500" MinHeight="300"   >   
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="44" />
        </Grid.RowDefinitions>
        <DataGrid x:Name="uxGameList" Grid.Row="0" ItemsSource="{Binding}" 
                  SelectionMode="Single" SelectionUnit="FullRow" AutoGenerateColumns="False" CanUserAddRows="False">
            <DataGrid.Columns>
                <DataGridTextColumn Visibility="Hidden" Binding="{Binding Path=Index}" IsReadOnly="True" />
                <DataGridTextColumn loc:Translate.Uid="FRM_HeaderEvent" Header="{loc:Translate}" Binding="{Binding Path=Event}" IsReadOnly="True" Width="2*"/>
                <DataGridTextColumn loc:Translate.Uid="FRM_HeaderPlace" Header="{loc:Translate}"  Binding="{Binding Path=Site}" IsReadOnly="True" Width="2*"/>
                <DataGridTextColumn loc:Translate.Uid="FRM_HeaderWhitePlayer" Header="{loc:Translate}" Binding="{Binding Path=White}" IsReadOnly="True" Width="3*"/>
                <DataGridTextColumn loc:Translate.Uid="FRM_HeaderBlackPlayer" Header="{loc:Translate}" Binding="{Binding Path=Black}" IsReadOnly="True" Width="3*" />
                <DataGridTextColumn loc:Translate.Uid="FRM_HeaderRound" Header="{loc:Translate}" Binding="{Binding Path=Round}" IsReadOnly="True" Width="1*"/>
                <DataGridTextColumn loc:Translate.Uid="FRM_HeaderGameResult" Header="{loc:Translate}" Binding="{Binding Path=Result}" IsReadOnly="True" Width="2*"/>
              </DataGrid.Columns>
        </DataGrid>
        <StackPanel HorizontalAlignment="Right" Grid.Row="1" Orientation="Horizontal">
            <Button x:Name="uxLoad" Margin="8" Padding="5" Width="100" 
                    loc:Translate.Uid="FRM_SelectPDNLoad" Content="{loc:Translate}" ></Button>
            <Button x:Name="uxCancel" Margin="8" Padding="5" Width="100"
                     loc:Translate.Uid="FRM_SelectPDNCancel" Content="{loc:Translate}" ></Button>            
        </StackPanel>       
    </Grid>
</Window>
